﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using System.Web.ModelBinding;
using PharmacyBussinesEntities;
using PharmacyService;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;

namespace PharmacyWeb.Almacen
{
    public partial class FrmListProveedor : System.Web.UI.Page
    { 
        [Dependency]
        public IProveedorService ProveedorService { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public IEnumerable<Proveedor> GetProveedor ([Control("txtcrit")] string criterio)
        {
            return ProveedorService.GetproveedorByCtriterio(criterio);
        }
    }
}